[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-28 Thread ai2472206007
Thanks for the detailed answer, my problem was solved very well through the code you provided -- Muyik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-27 Thread Wolfgang Schuster
ai2472206...@yeah.net schrieb am 25.04.2024 um 10:24: hi! I'm new to ConTeXt. I want to define a command with sidenote function. This [setupsidenote] command inherits the options of [setupmargindata], [setupcounter] and [setupframed]. just like [setupenumeration] inherits the option of

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-26 Thread ai2472206007
Thanks for your reply. The kanji part requires a specific font and typescript file, which I defined on my own computer but forgot to add to this example. This is something I didn't take into account. It's true, I need to think about what exactly my command needs, not build an all-powerful

[NTG-context] Re: Define a new command that inherits from multiple other command options

2024-04-26 Thread Bruce Horrocks
> On 25 Apr 2024, at 09:24, ai2472206...@yeah.net wrote: > > But what I don't know is how to get it to inherit the options of other > commands and perform these features correctly. Your example didn't work for me - none of the Chinese|Japanese[1] characters showed. AFAIK there is no way to

[NTG-context] Define a new command that inherits from multiple other command options

2024-04-25 Thread ai2472206007
hi! I'm new to ConTeXt. I want to define a command with sidenote function. This [setupsidenote] command inherits the options of [setupmargindata], [setupcounter] and [setupframed]. just like [setupenumeration] inherits the option of [setupcounter]. I've defined the following sidenote command

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-20 Thread Bruce Horrocks
> On 18 Apr 2024, at 01:09, Joel via ntg-context wrote: ... > Or maybe to use > to send the errors to another file for careful study? > (using Linux if that matters) You can run the job from the command line and redirect to a file: $ context file.tex >

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-19 Thread Hans Hagen
on the PDF, but it isn't showing there. Since a document of this size will have a lot of messages, is there a way to adjust the settings, from "show everything" to "show some" to "show only serious errors"? Or maybe to use > to send the errors to another fil

[NTG-context] Re: How to isolate serious errors from warnings?

2024-04-18 Thread Henning Hraban Ramm
a document of this size will have a lot of messages, is there a way to adjust the settings, from "show everything" to "show some" to "show only serious errors"? Or maybe to use > to send the errors to another file for careful study? (using Linux if that matter

[NTG-context] How to isolate serious errors from warnings?

2024-04-17 Thread Joel via ntg-context
, is there a way to adjust the settings, from "show everything" to "show some" to "show only serious errors"? Or maybe to use > to send the errors to another file for careful study? (using Linux if that matters) --Joel __

[NTG-context] Re: conversion from realpage to pagenumber

2024-01-14 Thread mf
Thank you Wolfgang, but my problem is getting back the page of the document starting from a "realpage" value picked from structures.registers.collected in the .tuc file. Anyway, looking at the .tuc file produced by your example, I found that structures.pages.collect

[NTG-context] Re: conversion from realpage to pagenumber

2024-01-12 Thread mf
Il 12/01/24 10:39, Henning Hraban Ramm ha scritto: Am 12.01.24 um 10:18 schrieb mf: Hello list, how do I convert the realpage number to a page number? Suppose you have a document with a frontmatter of 20 pages in roman numerals, followed by the main text starting from page 1 in arabic

[NTG-context] Re: conversion from realpage to pagenumber

2024-01-12 Thread Wolfgang Schuster
mf schrieb am 12.01.2024 um 10:18: Hello list, how do I convert the realpage number to a page number? Suppose you have a document with a frontmatter of 20 pages in roman numerals, followed by the main text starting from page 1 in arabic numerals. So the twelfth page is 'XII', while

[NTG-context] conversion from realpage to pagenumber

2024-01-12 Thread mf
Hello list, how do I convert the realpage number to a page number? Suppose you have a document with a frontmatter of 20 pages in roman numerals, followed by the main text starting from page 1 in arabic numerals. So the twelfth page is 'XII', while the twenty-second is '2'. How do I get 'XII

[NTG-context] Re: multipage metapost output from ConTeXt

2024-01-06 Thread Emanuel Han via ntg-context
Hi Mikael, with the solution provided by you, I could work on my graphic which grows from page to page. So far I have already 28 pages. Now I would like to go back to the summed graphic of p1 to p21 and add the coming p29, p30 etc. to only that (that means contents of p22 to p28 should

[NTG-context] Re: How to input first n lines from file?

2023-12-16 Thread Henning Hraban Ramm
Am 16.12.23 um 22:30 schrieb Joel via ntg-context: With the command `\input file`, I can input the entire contents of `file.tex`. Is there a way to limit it to the first n lines, for instance, something like `\input[10]` file would only input the first 10 lines from `file.tex` and ignore

[NTG-context] How to input first n lines from file?

2023-12-16 Thread Joel via ntg-context
With the command `\input file`, I can input the entire contents of `file.tex`. Is there a way to limit it to the first n lines, for instance, something like `\input[10]` file would only input the first 10 lines from `file.tex` and ignore the rest of the lines. --Joel

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
Dear Emanuel, > Le 2 déc. 2023 à 12:08, Emanuel Han via ntg-context a > écrit : > > Hi Mikael, > > here's a very simple mwe for the label(textext()) issue. On page 1, the text > "Word 1" should be drawn in position z1. On page 2, the same text in the same > position should be visible, and

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
Thank you Mikael, this works! Emanuel On Dez. 2 2023, at 7:46 pm, Mikael Sundqvist wrote: > Hi, > > I don't know if \startMPinclusions \stopMPinclusions shall work with > \startMPpage and \stopMPpage. In this case, one can use a separate > graphics: > > \startuseMPgraphic{base} > picture p[]; >

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
Hi, I don't know if \startMPinclusions \stopMPinclusions shall work with \startMPpage and \stopMPpage. In this case, one can use a separate graphics: \startuseMPgraphic{base} picture p[]; path TheFrame ; TheFrame := fullsquare scaled 5in ; z1 = (60,40); z2 = (40,90); z3 = (10,70); p1:=image(

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
Hi Mikael, here's a very simple mwe for the label(textext()) issue. On page 1, the text "Word 1" should be drawn in position z1. On page 2, the same text in the same position should be visible, and the text "Mot 2" in position p2 should be added. And so on. \startMPinclusions picture p[]; path

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
Hi Emanuel, I am not sure I understand your question, and since you use fonts that i do not have, I cannot test your example as is. But, maybe, if you want to redraw a picture, you can do addto currentpicture also p1; where you want it. /Mikael PS For the text thing, I did not get it. Could

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
You didn't specify the color of path A in p2 and p4. So it's drawn in black. The other issue, I can't help. Emanuel Han via ntg-context 於 2023年12月2日 週六 下午7:23寫道: > So is there a way to circumvent these issues? Or an explanation for this > behavior, so that I can try to find a solution by

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
So is there a way to circumvent these issues? Or an explanation for this behavior, so that I can try to find a solution by myself? Thanks Emanuel On Nov. 29 2023, at 12:25 pm, Emanuel Han via ntg-context wrote: > Dear Aditya and Fabrice, > thanks for your responses. > > I included some of

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
Dear Aditya and Fabrice, thanks for your responses. I included some of Fabrice's code into mine for testing purpose, and indeed the multipage works now. What is bizarre is that issues appear now that didn't appear before: Path A is drawn with color red on page 1, and in color black on all

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Aditya Mahajan
On Mon, 27 Nov 2023, Fabrice L wrote: > Hi, > > It is fun fact very easy to do. You just use \startMPpage (…) \stopMPpage > multiple times. Here is an example which build an animation of a particle > moving according to a Brownian motion. A very similar option is to pass a variable to a

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Fabrice L
I achieve multipage metapost output from ConTeXt? The result should > be a multipage pdf. It contains just a metapost graphic per page. The graphic > has always the same bounding box and evolves from page to page: Some elements > to be drawn are added, and some others would ideally also

[NTG-context] multipage metapost output from ConTeXt

2023-11-27 Thread Emanuel Han via ntg-context
How can I achieve multipage metapost output from ConTeXt? The result should be a multipage pdf. It contains just a metapost graphic per page. The graphic has always the same bounding box and evolves from page to page: Some elements to be drawn are added, and some others would ideally also

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-08 Thread Henning Hraban Ramm
Am 08.11.23 um 09:53 schrieb Marco Patzer: On Sun, 5 Nov 2023 18:11:45 + Bruce Horrocks wrote: When I go to the page layout page on the Contextgarden wiki the "typesetting areas" diagram is missing its text labels. Fixed. Any

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-08 Thread Marco Patzer
On Sun, 5 Nov 2023 18:11:45 + Bruce Horrocks wrote: > When I go to the page layout page on the Contextgarden wiki > > > > the "typesetting areas" diagram is missing its text labels. Fixed. > Any suggestions as to what needs to be changed to

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-07 Thread Andres Conrado Montoya
consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Taco Hoekwater
> On 6 Nov 2023, at 00:35, Bruce Horrocks wrote: > > > [1] Now there's an irony: the Wiki software creates different-sized previews > of a vector image so that it can show the image at different sizes on > different clients. I bet it started doing this back 'in the day’ to support Internet

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Bruce Horrocks
> On 5 Nov 2023, at 20:24, peter.hopcroft--- via ntg-context > wrote: > > I see this problem on my iPad: Safari and Orion browsers. > > I do not see this problem on my mac: Safari and Orion browsers. > Thank-you both for checking. Looking more closely it seems that the web page is

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread peter.hopcroft--- via ntg-context
I see this problem on my iPad: Safari and Orion browsers. I do not see this problem on my mac: Safari and Orion browsers. Peter > On 6/11/2023, at 8:19 AM, Henning Hraban Ramm wrote: > > Am 05.11.23 um 19:11 schrieb Bruce Horrocks: >> When I go to the page layout page on the Contextgarden

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Henning Hraban Ramm
Am 05.11.23 um 19:11 schrieb Bruce Horrocks: When I go to the page layout page on the Contextgarden wiki the "typesetting areas" diagram is missing its text labels. If I click on the diagram the Wiki takes me to the underlying layout.svg file

[NTG-context] Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-05 Thread Bruce Horrocks
When I go to the page layout page on the Contextgarden wiki the "typesetting areas" diagram is missing its text labels. If I click on the diagram the Wiki takes me to the underlying layout.svg file and then I /do/ see the labels. This happens in

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-27 Thread Pablo Rodriguez
and with the ouput from the second sample from my previous message [https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/message/IEEGSAL636X32C3WWMO2KWKXMTIARRGZ/]), Xpdf/Evince/Okular solve remote links fine. MuPDF-GL cannot solve the file (even when full path is provided) and PDF.js doesn’t

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-26 Thread Pablo Rodriguez
reference (save it as main.tex): \starttext \dorecurse{15} {\chapter[chap\recurselevel]{Chapter}} \stoptext You have the file that reads the references from main.tuc and generates the inter-document links: \setupinteraction[state=start] \starttext Links to each chapter using

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-25 Thread Pablo Rodriguez
On 7/24/23 18:04, Gerion Entrup wrote: > […] > I'm do not know the structure of PDFs exactly, therefore some of my > terms might be wrong. […] Hi Gerion, now I realize that my explanation was unnecesarily technical or not focused on your needs. My point was that if PDF as such doesn’t offer the

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-24 Thread Aditya Mahajan
. > I'll try to rephrase. Maybe it gets more clear then. I think, named > destinations could be a important part in the solution. > > I'm do not know the structure of PDFs exactly, therefore some of my > terms might be wrong. I'll name the two things from now on the following > way: >

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-24 Thread Gerion Entrup
ons could be a important part in the solution. I'm do not know the structure of PDFs exactly, therefore some of my terms might be wrong. I'll name the two things from now on the following way: - a destination: This is a defined position within a PDF document; so some position that a PDF viewer is a

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-22 Thread Pablo Rodriguez
On 7/20/23 16:25, Gerion Entrup wrote: > [...] > Can I somehow access the references of inner.tex from outer.tex? > For me, it is not that relevant, that the correct number is set, but the > interaction within the outer PDF should work, so clicking on the > reference should scroll

[NTG-context] Link from a PDF to a reference of an embedded PDF

2023-07-20 Thread Gerion Entrup
n[item:bla], \in[item:blub]. \stoptext ``` Can I somehow access the references of inner.tex from outer.tex? For me, it is not that relevant, that the correct number is set, but the interaction within the outer PDF should work, so clicking on the reference should scroll to the correct content. Backgr

[NTG-context] Problems with building texlive/context from its sources

2023-04-03 Thread Jakob Jakobson via ntg-context
Dear developers, I am/become one of the texlive mantainers on flathub a more or less recent and new approach for establishing a linux packaging format. The flatpak packages are usually build from source and so is the texlive package. You can find it under https://github.com/flathub

Re: [NTG-context] building from source

2023-03-21 Thread Rainer J.H. Brandt via ntg-context
Hans Hagen via ntg-context writes: > On 3/21/2023 12:14 PM, Rainer J.H. Brandt via ntg-context wrote: > > Dear Context developers, > > > > I want to build Context MkXL from source and use that. I went to the [...] > First define 'build from source'. The lmtx (mkxl) instal

Re: [NTG-context] building from source

2023-03-21 Thread Hans Hagen via ntg-context
On 3/21/2023 12:14 PM, Rainer J.H. Brandt via ntg-context wrote: Dear Context developers, I want to build Context MkXL from source and use that. I went to the download page http://www.pragma-ade.com/download-1.htm and downloaded the 2023-03-20 version: http://www.pragma-ade.com/context/latest

[NTG-context] building from source

2023-03-21 Thread Rainer J.H. Brandt via ntg-context
Dear Context developers, I want to build Context MkXL from source and use that. I went to the download page http://www.pragma-ade.com/download-1.htm and downloaded the 2023-03-20 version: http://www.pragma-ade.com/context/latest/cont-tmf.zip This contains README.adoc which tells me

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Joel via ntg-context
Fantastic! Exactly what I needed. My publisher was gong to ask for the information of this index soon, so its great that already works! --Joel On Sunday, February 26, 2023 at 11:45:48 AM MST, Alan Braslau wrote: Hans needs to confirm, "In the next update..." Test files (MWEs): %

Re: [NTG-context] How to add data from another PDF in index?

2023-02-26 Thread Alan Braslau via ntg-context
Hans needs to confirm, "In the next update..." Test files (MWEs): % index-1.tex \setupinteraction[state=start] \starttext test \index{entryWB.1} \page empty \page test \index{another WB.1} \page empty \page test \index{onemore WB.1} \page empty \page test \index{whatever

Re: [NTG-context] How to add data from another PDF in index?

2023-02-24 Thread Alan Braslau via ntg-context
We are currently working on fixing cross-references as well as shared register information between products in a ConTeXt project structure. Much is possible, but not all is fully worked out. My current use is a multi-volume book, sharing Tables of Contents between the two volumes. As a teaser,

[NTG-context] How to add data from another PDF in index?

2023-02-23 Thread Joel via ntg-context
I am making a textbook and workbook set. I have this custom index using this code, in both the textbook and workbook: % \defineregister[learnedshort][compress=yes] \setupregister[learnedshort][style=sansbold, textstyle=slanted, n=2, pagenumber=yes, indicator=no] %

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-21 Thread Pablo Rodriguez via ntg-context
On 2/20/23 18:14, Sylvain Hubert via ntg-context wrote: > On Mon, 20 Feb 2023 at 23:22, Pablo Rodriguez via ntg-context > wrote: > > Hi Sylvain, > > one main documentation source is the wiki. > > Sorry, but I‘m afraid it is hard for me to understand how adding another >

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Jean-Pierre Delange via ntg-context
For \setuphead command, Taco's reference to Google Context shows this : https://cse.google.com/cse?cx=016640200293943433883%3Aw-6slqs1kjg#gsc.tab=0=setuphead= For Japanese/Chinese CJK issues, see here : https://cse.google.com/cse?cx=016640200293943433883%3Aw-6slqs1kjg#gsc.tab=0=cjk= Thank

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Sylvain Hubert via ntg-context
On Mon, 20 Feb 2023 at 23:22, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> wrote: > On 2/20/23 15:47, Sylvain Hubert via ntg-context wrote: > > [...] > > Btw, just in case if anyone shares this idea: is it possible to have a > > zulip channel for ConTeXt? It's free for open source

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Taco Hoekwater via ntg-context
> On 20 Feb 2023, at 16:21, Pablo Rodriguez via ntg-context > wrote: > > On 2/20/23 15:47, Sylvain Hubert via ntg-context wrote: >> [...] >> Btw, just in case if anyone shares this idea: is it possible to have a >> zulip channel for ConTeXt? It's free for open source projects, has a >>

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Pablo Rodriguez via ntg-context
On 2/20/23 15:47, Sylvain Hubert via ntg-context wrote: > [...] > Btw, just in case if anyone shares this idea: is it possible to have a > zulip channel for ConTeXt? It's free for open source projects, has a > interface for existing mailing lists, and has a reasonable builtin > search engine,

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-20 Thread Sylvain Hubert via ntg-context
] might help. > > Another approach would be \setuphead[subject][after={\blank[samepage, > line]}]. > > I mean, either you set a preference for breaking pages before \subject > or you force \subject to be on the same page with next paragraph. > > Nothing prevents you from doing

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-19 Thread Bruce Horrocks via ntg-context
> On 19 Feb 2023, at 19:34, Sylvain Hubert via ntg-context > wrote: > > Dear list, > > I have a long document (A4 * 170 pages) with some CJK fonts, where some of > the \subject{...} are placed at the end of the corresponding pages, which > looks awkward. How can one flush those last-line

Re: [NTG-context] How to prevent \subject from being the last line

2023-02-19 Thread Pablo Rodriguez via ntg-context
for breaking pages before \subject or you force \subject to be on the same page with next paragraph. Nothing prevents you from doing both. BTW, default values for before and after in \setuphead[subject] are \blank[2*big] and \blank (respectively [copied from strc-def.mkxl]). > Current

[NTG-context] How to prevent \subject from being the last line

2023-02-19 Thread Sylvain Hubert via ntg-context
Dear list, I have a long document (A4 * 170 pages) with some CJK fonts, where some of the \subject{...} are placed at the end of the corresponding pages, which looks awkward. How can one flush those last-line titles to the next pages? Currently I don't have a MWE, as trivial filling-up with 1-2

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Hans Hagen via ntg-context
roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext \setupheadnumber[section] [-1

Re: [NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
\stopsection \startsection[title={Section 1}]bar\stopsection \stoptext ### Sorry for the noise Le 16/02/23 à 17:32, Alex Leray via ntg-context a écrit : Hello, I'd like to have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have

[NTG-context] Section numbering starting from zero, not one

2023-02-16 Thread Alex Leray via ntg-context
Hello, I'd like to have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext

Re: [NTG-context] Can ConTeXt print specific paragraph and sentences from an input file?

2023-01-29 Thread Joel via ntg-context
say: > > \starttext > > \input essay > > \stoptext > > > Is there any command to tell ConTeXt to print a specific sentence, e.g. > the first sentence from paragraph 2, or the last sentence from paragraph > 1, etc? depends on the kind of input, coding etc

Re: [NTG-context] Can ConTeXt print specific paragraph and sentences from an input file?

2023-01-26 Thread Hans Hagen via ntg-context
On 1/27/2023 4:22 AM, Joel via ntg-context wrote: Assuming I have an input file with an essay: \starttext \input essay \stoptext Is there any command to tell ConTeXt to print a specific sentence, e.g. the first sentence from paragraph 2, or the last sentence from paragraph 1, etc? depends

[NTG-context] Can ConTeXt print specific paragraph and sentences from an input file?

2023-01-26 Thread Joel via ntg-context
Assuming I have an input file with an essay: \starttext \input essay \stoptext Is there any command to tell ConTeXt to print a specific sentence, e.g. the first sentence from paragraph 2, or the last sentence from paragraph 1, etc? --Joel

[NTG-context] Why won't custom indexes work when the value comes from \getvalue?

2023-01-21 Thread Joel via ntg-context
I setup a custom index like this (see minimum example code below): The problem is, when I try to create an index entry, using \setcoreidea, but place \getvalue inside, it won't render, ex.: \setcoreidea{\getvalue{secret1}} As you can see in this sample code, \setcoreidea will work fine, but when

Re: [NTG-context] How to stop enumerated tabulate environments from shifting to the right?

2022-11-12 Thread fv leung via ntg-context
t the one with tables indents. It also seems to > spill into the right margin. > > How can I stop enumerated table environments from indenting? > > --Joel > > ___ > If your question is of inter

[NTG-context] How to stop enumerated tabulate environments from shifting to the right?

2022-11-12 Thread Joel via ntg-context
edge of text, but the one with tables indents. It also seems to spill into the right margin. How can I stop enumerated table environments from indenting? --Joel ___ If your question is of interest to others as well, pleas

Re: [NTG-context] Example from Practex Journal

2022-10-08 Thread Wolfgang Schuster via ntg-context
Jeroen via ntg-context schrieb am 08.10.2022 um 13:17: Hello, Could anybody help me out with the setup and a MWE to get a document exactly as the one from Steve Peter in the Practex Journal in 2005 as in https://tug.org/pracjourn/2005-1/peter/peter.pdf The articles used a now out of date

Re: [NTG-context] Example from Practex Journal

2022-10-08 Thread Herbert Voss via ntg-context
Am 08.10.22 um 13:17 schrieb Jeroen via ntg-context: Could anybody help me out with the setup and a MWE to get a document exactly as the one from Steve Peter in the Practex Journal in 2005 as in https://tug.org/pracjourn/2005-1/peter/peter.pdf I find this one hard to replicate. What

[NTG-context] Example from Practex Journal

2022-10-08 Thread Jeroen via ntg-context
Hello, Could anybody help me out with the setup and a MWE to get a document exactly as the one from Steve Peter in the Practex Journal in 2005 as in https://tug.org/pracjourn/2005-1/peter/peter.pdf I find this one hard to replicate. What is the font type that was used for this document ? Thanks

Re: [NTG-context] accessing tex.sprint from pure Lua code.

2022-08-30 Thread Hans Hagen via ntg-context
On 8/30/2022 8:02 PM, Hans van der Meer wrote: In Terminal (say Unix window) calling lua some-file.lua and within that file code like tex.sprint ... token... Thus calling in the tex-library outside ConTeXt. no, tex is not a library .. but of course you can make a small tex file that wraps

Re: [NTG-context] accessing tex.sprint from pure Lua code.

2022-08-30 Thread Hans Hagen via ntg-context
On 8/30/2022 7:34 PM, Hans van der Meer via ntg-context wrote: How can ik access the tex library in pure Lua for tex.sprint and token.setmacro? I guess something like require XYZ ? what do you mean with pure lua Hans -

[NTG-context] accessing tex.sprint from pure Lua code.

2022-08-30 Thread Hans van der Meer via ntg-context
How can ik access the tex library in pure Lua for tex.sprint and token.setmacro? I guess something like require XYZ ? dr. Hans van der Meer ___ If your question is of interest to others as well, please add an entry

Re: [NTG-context] Accessing inserts from Lua in LuaMetaTeX

2022-08-15 Thread Max Chernoff via ntg-context
Hi Hans, > > First, how do I get an insert's class/type from the "insert" nodes on > > the page? With LuaTeX, the insert's class/type is the same as the > > subtype of the "ins" nodes, but the subtype of the "insert" nodes is > > always ze

Re: [NTG-context] Accessing inserts from Lua in LuaMetaTeX

2022-08-15 Thread Hans Hagen via ntg-context
On 8/15/2022 8:18 AM, Max Chernoff via ntg-context wrote: Hi all, I'm trying to manipulate some inserts from Lua in LuaMetaTeX, and I'm having some problems that I'm not having with LuaTeX. First, how do I get an insert's class/type from the "insert" nodes on the page? W

[NTG-context] Accessing inserts from Lua in LuaMetaTeX

2022-08-15 Thread Max Chernoff via ntg-context
Hi all, I'm trying to manipulate some inserts from Lua in LuaMetaTeX, and I'm having some problems that I'm not having with LuaTeX. First, how do I get an insert's class/type from the "insert" nodes on the page? With LuaTeX, the insert's class/type is the same as the subtype of the &

Re: [NTG-context] How to do code listings & sections from XML (AsciiDoc)

2022-08-13 Thread Mojca Miklavec via ntg-context
On Fri, 12 Aug 2022 at 23:20, Aditya Mahajan wrote: > On Fri, 12 Aug 2022, Mojca Miklavec via ntg-context wrote: > > > (a) I don't know how to turn program listing (verbatim code) from xml > > to (perhaps, vim-based) syntax highlighting (but most importantly, to > > make su

Re: [NTG-context] How to do code listings & sections from XML (AsciiDoc)

2022-08-13 Thread Mojca Miklavec via ntg-context
issues: > > > > (a) I don't know how to turn program listing (verbatim code) from xml > > to (perhaps, vim-based) syntax highlighting (but most importantly, to > > make sure that line breaks work properly) > > Does something like this work: > > https://wiki.con

Re: [NTG-context] How to do code listings & sections from XML (AsciiDoc)

2022-08-12 Thread Max Chernoff via ntg-context
> Hi, > > Hans helped me out with some asciidoc processing a while ago. > > I played a bit further, but I'm currently facing two minor issues: > > (a) I don't know how to turn program listing (verbatim code) from xml > to (perhaps, vim-based) syntax highlighting (but mos

Re: [NTG-context] How to do code listings & sections from XML (AsciiDoc)

2022-08-12 Thread Aditya Mahajan via ntg-context
On Fri, 12 Aug 2022, Mojca Miklavec via ntg-context wrote: > Hi, > > Hans helped me out with some asciidoc processing a while ago. > > I played a bit further, but I'm currently facing two minor issues: > > (a) I don't know how to turn program listing (verbatim code) from x

[NTG-context] How to do code listings & sections from XML (AsciiDoc)

2022-08-12 Thread Mojca Miklavec via ntg-context
Hi, Hans helped me out with some asciidoc processing a while ago. I played a bit further, but I'm currently facing two minor issues: (a) I don't know how to turn program listing (verbatim code) from xml to (perhaps, vim-based) syntax highlighting (but most importantly, to make sure that line

Re: [NTG-context] Forbid footnotes from splitting across pages

2022-08-03 Thread Hamid,Idris via ntg-context
. If no footnote crosses the page it will be easier to edit in WORD -- which I'm not touching! Thanks again. Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80523 From: ntg-context on behalf

Re: [NTG-context] Forbid footnotes from splitting across pages

2022-08-03 Thread Pablo Rodriguez via ntg-context
On 8/3/22 03:05, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: > Dear gang, > > Objectives: > > i) Prevent footnotes from splitting across a page or pagebreak Dear Idris, I wonder whether a \framed[offset=none, frame=off, width=\textwidth] would make sense here. At

[NTG-context] Forbid footnotes from splitting across pages

2022-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
Dear gang, Objectives: i) Prevent footnotes from splitting across a page or pagebreak ii) Make sure that the footnote reference number in the main text is always on the same page as the footnote. Yes, the result may not be pretty, but for some manuscript submissions it will make sense

Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread Henning Hraban Ramm via ntg-context
2022 11:49 *An:* Denis Maier via ntg-context *Cc:* jbf ; mailing list for ConTeXt users *Betreff:* Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg Maybe \setupnote[footnote][width=\textwi

Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread Denis Maier via ntg-context
;inherit" textwidth from floatntg Yes, that works. But it’s still strange, isn’t it? Denis Von: ntg-context mailto:ntg-context-boun...@ntg.nl>> Im Auftrag von jbf via ntg-context Gesendet: Donnerstag, 16. Juni 2022 11:49 An: Denis Maier via ntg-context mailto:ntg-context@ntg.nl>&

Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread Denis Maier via ntg-context
;inherit" textwidth from floatntg Maybe \setupnote[footnote][width=\textwidth]? Julian On 16/6/22 18:56, Denis Maier via ntg-context wrote: Hi, I think I’ve ran into a somewhat strange behaviour. If you have a footnote in a float caption, the footnote won’t use the full textwidth, but o

Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg

2022-06-16 Thread jbf via ntg-context
Maybe \setupnote[footnote][width=\textwidth]? Julian On 16/6/22 18:56, Denis Maier via ntg-context wrote: Hi, I think I’ve ran into a somewhat strange behaviour. If you have a footnote in a float caption, the footnote won’t use the full textwidth, but only the width of the corresponding

[NTG-context] Footnotes in captions -> "inherit" textwidth from float

2022-06-16 Thread Denis Maier via ntg-context
Hi, I think I've ran into a somewhat strange behaviour. If you have a footnote in a float caption, the footnote won't use the full textwidth, but only the width of the corresponding caption. Is that on purpose, a context bug or a user bug? Best, Denis \starttext asdf

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Willi Egger via ntg-context
er{Test} >\input knuth > > \stoptext > > The problem I'm facing, is anytime a chapter title is called, such as > "Content" in complete content, or something in the appendix, such as one of > the indexes, no number is printed above, so the vertical distance from t

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Denis Maier via ntg-context
> -Ursprüngliche Nachricht- > Von: Taco Hoekwater > Gesendet: Montag, 9. Mai 2022 09:48 > An: mailing list for ConTeXt users > Cc: Maier, Denis Christian (UB) > Betreff: Re: [NTG-context] How to place "Content" and other chapter-level > titles the same

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Taco Hoekwater via ntg-context
> On 9 May 2022, at 09:45, Denis Maier via ntg-context > wrote: > > This example from the wiki does not run anymore with LMTX: Still worked ok in: ConTeXt ver: 2022.04.19 19:53 LMTX > You get the error message: > I've run across a '}' that doesn't seem to match any

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-09 Thread Denis Maier via ntg-context
This example from the wiki does not run anymore with LMTX: You get the error message: I've run across a '}' that doesn't seem to match anything. For example, '\def\a#1{...}' and '\a}' would produce this error. The '\par' that I've just inserted will cause me to report a runaway argument that might

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-08 Thread Denis Maier via ntg-context
"Content" and other chapter-level titles the same vertical distance from the top? Maybe define your own chapter command and use a vbox. Look at this example from the wiki: \setuppapersize[A6][A6] \setupbodyfont[8pt] \def\MyChapterCommand#1#2% {\vbox to 4cm\bgroup {#1\hskip.75em #2}

Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-08 Thread Denis Maier via ntg-context
Maybe define your own chapter command and use a vbox. Look at this example from the wiki: \setuppapersize[A6][A6] \setupbodyfont[8pt] \def\MyChapterCommand#1#2% {\vbox to 4cm\bgroup {#1\hskip.75em #2} \vss \egroup} \setuphead[chapter][header=nomarking, command=\MyChapterCommand

[NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?

2022-05-07 Thread Joel via ntg-context
chapter{Test}         \input knuth     \chapter{Test}         \input knuth \stoptext The problem I'm facing, is anytime a chapter title is called, such as "Content" in complete content, or something in the appendix, such as one of the indexes, no number is printed above, so the vertical

Re: [NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-30 Thread Henning Hraban Ramm via ntg-context
Am 30.01.22 um 00:44 schrieb Bruce Horrocks via ntg-context: On 29 Jan 2022, at 21:30, Joel via ntg-context wrote: When I used `\placefigure`, ConTeXt often puts the figure on a completely different page, my readership of young students is getting confused where the image is. How can I have

Re: [NTG-context] How to stop columns from splitting up items in a list?

2022-01-29 Thread Bruce Horrocks via ntg-context
> On 29 Jan 2022, at 14:45, Joel via ntg-context wrote: > > I am writing a workbook that contains a materials list in front of some craft > activities. > > I found that simply displaying a bulleted list can take up lots of space on > the page, so instead put the list in three columns. The

Re: [NTG-context] How to stop \placefigure from floating off to some other page?

2022-01-29 Thread Bruce Horrocks via ntg-context
On 29 Jan 2022, at 21:30, Joel via ntg-context wrote: > > When I used `\placefigure`, ConTeXt often puts the figure on a completely > different page, my readership of young students is getting confused where the > image is. How can I have all of my `\placefigure` in the entire document >

  1   2   3   4   5   6   7   8   9   10   >